<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<meta content="" name="description" />
    <meta content="webthemez" name="author" />
    <title>奥骞微信小程序后台</title>
    <!-- Bootstrap Styles-->
    <link href="/nurses_school/Admin/Public/admin/assets/css/bootstrap.css" rel="stylesheet" />
    <!-- FontAwesome Styles-->
    <link href="/nurses_school/Admin/Public/admin/assets/css/font-awesome.css" rel="stylesheet" />
    <!-- Morris Chart Styles-->
    <link href="/nurses_school/Admin/Public/admin/assets/js/morris/morris-0.4.3.min.css" rel="stylesheet" />
    <!-- Custom Styles-->
    <link href="/nurses_school/Admin/Public/admin/assets/css/custom-styles.css" rel="stylesheet" />
    <!-- Google Fonts-->
    <link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css' />
    <link rel="stylesheet" href="/nurses_school/Admin/Public/admin/assets/js/Lightweight-Chart/cssCharts.css">
    <!-- jQuery Js -->
    <script src="/nurses_school/Admin/Public/admin/assets/js/jquery-1.10.2.js"></script>
</head>

<body>
    <div id="wrapper">
        <nav class="navbar navbar-default top-navbar" role="navigation">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".sidebar-collapse">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="index.html"><strong><i class="icon fa fa-plane"></i> 奥骞微信小程序</strong></a>
				
		<div id="sideNav" href="">
		<i class="fa fa-bars icon"></i> 
		</div>
            </div>

            <ul class="nav navbar-top-links navbar-right">
                <li class="dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#" aria-expanded="false">
                        <i class="fa fa-envelope fa-fw"></i> <i class="fa fa-caret-down"></i>
                    </a>
                    <ul class="dropdown-menu dropdown-messages">
                        <?php foreach($newMessage as $k=>$v){?>
                        <li>
                            <a href="#">
                                <div>
                                    <strong><?php echo $v['content']?></strong>
                                    <!-- <span class="pull-right text-muted">
                                        <em><?php echo $v['phone']?></em>
                                    </span> -->
                                </div>
                                <div><?php echo $v['time']?></div>
                            </a>
                        </li>
                        <li class="divider"></li>
                        <?php }?>
                        <li>
                            <a class="text-center" href="<?php echo U('Message/index');?>">
                                <strong>查看全部</strong>
                                <i class="fa fa-angle-right"></i>
                            </a>
                        </li>
                    </ul>
                    <!-- /.dropdown-messages -->
                </li>
                <!-- /.dropdown -->
                <li class="dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#" aria-expanded="false">
                        <i class="fa fa-user fa-fw"></i> <i class="fa fa-caret-down"></i>
                    </a>
                    <ul class="dropdown-menu dropdown-user">
                        <li><a href="#"><i class="fa fa-user fa-fw"></i> <?php echo ($_COOKIE['aoqianwx_account_name']); ?></a>
                        </li>
                        <!-- <li><a href="#"><i class="fa fa-gear fa-fw"></i> Settings</a>
                        </li> -->
                        <li class="divider"></li>
                        <li><a href="<?php echo U('login/logout');?>"><i class="fa fa-sign-out fa-fw"></i> 退出</a>
                        </li>
                    </ul>
                    <!-- /.dropdown-user -->
                </li>
                <!-- /.dropdown -->
            </ul>
        </nav>
        <!--/. NAV TOP  -->
        <nav class="navbar-default navbar-side" role="navigation">
            <div class="sidebar-collapse">
                <ul class="nav" id="main-menu">

                    <li>
                        <a <?php echo $controllerName=="Index"?'class="active-menu"':"";?>  href="<?php echo U('Index/index');?>"><i class="fa fa-dashboard"></i> banner设置</a>
                    </li>
                    <li>
                        <a <?php echo $controllerName=="Contact"?'class="active-menu"':"";?> href="<?php echo U('Contact/index');?>"><i class="fa fa-desktop"></i>申请报名</a>
                    </li>	
                    <li>
                        <a <?php echo $controllerName=="Message"?'class="active-menu"':"";?> href="<?php echo U('Message/index');?>"><i class="fa fa-qrcode"></i>在线留言</a>
                    </li>
                    
                    <li>
                        <a <?php echo $controllerName=="Course"?'class="active-menu"':"";?> href="<?php echo U('Course/index');?>"><i class="fa fa-table"></i>课程管理</a>
                    </li>
                    <!-- <li>
                        <a href="form.html"><i class="fa fa-edit"></i> Forms </a>
                    </li> -->
                </ul>

            </div>

        </nav>
        <!-- /. NAV SIDE  -->
      
		<div id="page-wrapper">
            <div class="header"> 
    <h1 class="page-header">
        课程管理
    </h1>
    <ol class="breadcrumb">
        <li><a href="#">首页</a></li>
        <li><a href="<?php echo U('Course/index');?>">课程列表</a></li>
        <li class="active"><a href="#">添加课程</a></li>
    </ol> 

</div>
<div id="page-inner">
    <!-- 内容开始 -->
    <div class="row">

        <div class="col-md-12">
            <div class="panel panel-default">
                <div class="panel-heading">
                添加课程
                </div> 
                <div class="panel-body"> 
                  <form class="form-horizontal" action="<?php echo U('Course/addCourse');?>" method="post" enctype="multipart/form-data">
                    <div class="form-group">
                      <label class="col-sm-2 control-label">课程名</label>
                      <div class="col-sm-10">
                        <input type="text" class="form-control" name="name" placeholder="课程名">
                      </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">上传主图</label>
                        <div class="col-sm-10">
                          <input type="file" name="mainimg">
                          <p class="help-block">上传图片小于2M（格式为jpg, gif, png, jpeg）</p>
                        </div>
                    </div>
                    <div class="form-group">
                      <label class="col-sm-2 control-label">类型</label>
                      <div class="col-sm-10">
                        <input type="text" class="form-control" name="type" placeholder="分类">
                        <p class="help-block">分类有（UI设计，H5开发，电商设计）</p>
                      </div>
                    </div>
                    <div class="form-group">
                      <label class="col-sm-2 control-label">简介</label>
                      <div class="col-sm-10">
                        <textarea class="form-control" name="abstract" placeholder="简介"></textarea>
                      </div>
                    </div>
                    <div class="form-group">
                      <label class="col-sm-2 control-label">课程内容</label>
                      <div class="col-sm-10">
                        <textarea id="editor_id" name="content" ></textarea>
                      </div>
                    </div>
                    <div class="form-group">
                      <div class="col-sm-offset-2 col-sm-10">
                        <button type="submit" class="btn btn-default">添加</button>
                      </div>
                    </div>
                  </form>  
                </div>
            </div>
        </div>                      
    </div>
    <!-- 内容结束 -->

</div>
<!-- /. PAGE INNER  -->
<script charset="utf-8" src="/nurses_school/Admin/Public/kindeditor/kindeditor-all.js"></script>
<script charset="utf-8" src="/nurses_school/Admin/Public/kindeditor/lang/zh-CN.js"></script>
<script>
  KindEditor.ready(function(K) {
    window.editor = K.create('#editor_id');
  });
</script>
  
        </div>
        <!-- /. PAGE WRAPPER  -->
    </div>
    <!-- /. WRAPPER  -->
    <!-- JS Scripts-->
    
    <!-- Bootstrap Js -->
    <script src="/nurses_school/Admin/Public/admin/assets/js/bootstrap.min.js"></script>
	 
    <!-- Metis Menu Js -->
    <script src="/nurses_school/Admin/Public/admin/assets/js/jquery.metisMenu.js"></script>
    <!-- Morris Chart Js -->
    <script src="/nurses_school/Admin/Public/admin/assets/js/morris/raphael-2.1.0.min.js"></script>
    <!-- Custom Js -->
    <script src="/nurses_school/Admin/Public/admin/assets/js/custom-scripts.js"></script>

</body>

</html>